package com.push.api.vo;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class ResultWrapper {

    private int interval;
    private String ad_close;
    private int request_interval;
    private int c_rate;

    private Map<Integer, Offer> list = new HashMap<Integer, Offer>();

    public int getInterval() {
        return interval;
    }

    public void setInterval(int interval) {
        this.interval = interval;
    }

    public String getAd_close() {
        return ad_close;
    }

    public void setAd_close(String ad_close) {
        this.ad_close = ad_close;
    }

    public int getRequest_interval() {
        return request_interval;
    }

    public void setRequest_interval(int request_interval) {
        this.request_interval = request_interval;
    }

    public int getC_rate() {
        return c_rate;
    }

    public void setC_rate(int c_rate) {
        this.c_rate = c_rate;
    }

    public Map<Integer, Offer> getList() {
        return list;
    }

    public void setList(List<Offer> list) {
        for (Offer offer : list) {
            this.list.put(offer.getId(), offer);
        }
    }

}
